/*******************************************************************************
 * 视图控制器
 */
Ext.regController(App.controllers.VIEW, {
			showView : function(options) {
				var viewsNodes = typeof options.ids == 'string' ? options.ids.split(',') : options.ids,
				app = (options.app ? Ext.ApplicationManager.get(options.app) : null) || this.application,
				anim = options.anim,
				views = [];
				if(Ext.isArray(viewsNodes)){
					views.push(app.getView(viewsNodes[0]));
					app.viewport.setActiveItem(views[0]);
					for(var i = 0 ; i < viewsNodes.length-1 ; i++){
						views[i+1] = views[i].getComponent(viewsNodes[i+1]);
						views[i].setActiveItem(views[i+1],viewsNodes.length == i+1 ? anim : null);
					}
					return views;
				}
				return null;
			}
		});